class CreateAges < ActiveRecord::Migration
  def self.up
    create_table :ages do |t|
      t.column :name, :string
    end
    [_("Birth"), _("3 Months"), _("3 to 6 Months"), _("6 to 9 Months"), _("9 to 12 Months"), _("12 to 18 Months"), _("18 to 24 Months"), _("2 years old"), _("3 years old"), _("4 years old"), _("5 years old"), _("6 years old"), _("7 years old"), _("8 years old"), _("9 years old"), _("10 years old")].each do |n|
      Age.create :name => n
    end
  end

  def self.down
    drop_table :ages
  end
end
